#!/bin/bash 
A=hello
readonly B=hello 
A=beijing # 正确的
B=beijing # 报错 B：只读变量
echo "A=$A" # A=beijing
echo "B=$B" # B=hello
